//
//  EmptyStateView.h
//  ChatDemo-UI2.0
//
//  Created by syun on 16/10/24.
//  Copyright © 2016年 syun. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol reloadDataDelegate <NSObject>

- (void)reloadCurrentData;

@end

@interface EmptyStateView : UIView

@property(nonatomic, strong)UIImageView *backImage;

@property(nonatomic, strong)UILabel *bottomLable;

@property(nonatomic, strong)UIButton *reloadBtn;

@property(nonatomic, assign)id<reloadDataDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame andBackImage:(NSString *)imageStr andBottomStr:(NSString *)bottomStr;
//无网络初始化
- (instancetype)initNoWifiWithFrame:(CGRect)frame andBackImage:(NSString *)imageStr andBottomStr:(NSString *)bottomStr;
- (void)showEmptyImage;
- (void)hideEmptyImage;
@end
